<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/templateFormulario.xhtml">
	
	<ui:define name="formContent">
		<f:loadBundle basename="props.lenguajes.messages" var="msg"/>
		<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
	
		<p:dialog modal="true" widgetVar="statusDialog" header="Processing"   
		        draggable="false" closable="false">  
		    <p:graphicImage value="../../resources/img/ajaxloadingbar.gif" />
		</p:dialog>
		
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirm" modal="true" height="100" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages3" showDetail="true" autoUpdate="true" closable="true" />
		    <h:panelGrid columns="2" styleClass="centerContent">
		    	<p:commandButton id="cbNuevo" value="#{msg['message.devLlid.messageNewgGeneracion']}" style="font-size: 12px;"
					action="#{eventoAdminMB.reiniciar}"/>
				<p:commandButton id="btnSalir" value="#{msg['message.devLlid.messageSalir']}"  style="font-size: 12px;"
							action="#{eventoAdminMB.continuar}"/>
		    </h:panelGrid>
		</p:dialog>
		
		
			
		<h:panelGrid columns="2">
		
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.messageEventoTipoRegist']}:"/>
				<p:selectOneMenu id="eventos" value="#{eventoAdminMB.vistaTipoEvento}">  
	                <f:selectItem itemLabel="Choose option" itemValue="" />  
	                <f:selectItems value="#{eventoAdminMB.tipoEventoList}" />
	            </p:selectOneMenu>  
							
				<p:outputLabel value="#{msg['message.devLlid.messageEventoLugarRegist']}:"/>
				<p:inplace id="ajaxILugar" editor="true">  
	                <p:inputText value="#{eventoAdminMB.vistaLugar}"  
	                            required="true" size="50"/>  
	            </p:inplace>
	            
				<p:outputLabel value="#{msg['message.devLlid.messageEventoActaRegist']}:"/>
				<h:form enctype="multipart/form-data">
					<p:fileUpload  
							id="uploadC" mode="advanced" style="width:490px; font-size: 9px;"  
				            update="messagesUp" allowTypes="/(pdf)$/" 
				            fileUploadListener="#{eventoAdminMB.handleFileUpload}"
				            />  
				  	<p:growl id="messagesUp" showDetail="true" sticky="true" />
				</h:form>
				
				<p:outputLabel value="#{msg['message.devLlidAdminFI']}:"/>
				<p:calendar value="#{eventoAdminMB.vistafechaSesion}" id="fechaCalendar" size="25">
					<p:ajax event="dateSelect" listener="#{eventoAdminMB.handleDateSelect}" />
				</p:calendar>
				
			</h:panelGrid>
			
		</h:panelGrid>
		
		<p:separator/>
		
		<div align="center">
			<p:commandButton id="cbReg" value="#{msg['message.devLlid.actionTitleRegistraEvento']}" 
				style="font-size: 12px;"
				disabled="#{eventoAdminMB.disableComponents}"
				action="#{eventoAdminMB.registrar}"/>
		</div>
		
	</ui:define>
</ui:composition>
